/**
 * Created by Zhang JiRen
 * @date 2022/7/22 0022
 */
import request from "@/utils/request";

const list = params => {
  return request({
    url: "/api/v1/response/command/define/list",
    method: "get",
    data: params
  });
};

const add = params => {
  return request({
    url: "/api/v1/response/command/define/add",
    method: "post",
    data: params
  });
};

const del = params => {
  return request({
    url: "/api/v1/response/command/define/del",
    method: "get",
    data: params
  });
};

const name_set = params => {
  return request({
    url: "/api/v1/response/command/define/name/set",
    method: "post",
    data: params
  });
};

const description_set = params => {
  return request({
    url: "/api/v1/response/command/define/description/set",
    method: "post",
    data: params
  });
};

const model_set = params => {
  return request({
    url: "/api/v1/response/command/define/model/set",
    method: "post",
    data: params
  });
};

const enable = params => {
  return request({
    url: "/api/v1/response/command/define/enable",
    method: "get",
    data: params
  });
};

const disable = params => {
  return request({
    url: "/api/v1/response/command/define/disable",
    method: "get",
    data: params
  });
};

const command_list = params => {
  return request({
    url: "/api/v1/response/command/list",
    method: "get",
    data: params
  });
};

const send = params => {
  return request({
    url: "/api/v1/response/command/send",
    method: "post",
    data: params
  });
};

const get = params => {
  return request({
    url: "/api/v1/response/command/get",
    method: "get",
    data: params
  });
};
const getall = params => {
  return request({
    url: "/api/v1/response/command/getall",
    method: "get",
    data: params
  });
};

export default {
  list,
  add,
  del,
  name_set,
  description_set,
  model_set,
  enable,
  disable,
  command_list,
  send,
  get,
  getall
};
